package com.fap.core.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class BaseView {

    @RequestMapping(value="/hello.do",method=RequestMethod.GET)  
    public String showMessage(HttpServletRequest request, HttpServletResponse response,Object handle, Model m) {  
//        request.setAttribute("message", "helloworld");
//        return new ModelAndView("form3.ftl", "message", "helloworld");
    	m.addAttribute("message", "您好");
    	return "form3";
    }
}
